﻿package mortal.game.proxy
{
    import Message.Game.*;
    import extend.language.*;
    import mortal.game.events.*;
    import mortal.game.manager.*;
    import mortal.game.mvc.*;
    import mortal.mvc.core.*;

    public class CollectExchangeProxy extends Proxy
    {

        public function CollectExchangeProxy()
        {
            return;
        }// end function

        public function getExchangeReward(param1:int) : void
        {
            rmi.iRolePrx.getExchangeReward_async(new AMI_IRole_getExchangeReward(this.ExchangeTake, null, param1), param1);
            return;
        }// end function

        private function ExchangeTake(param1:AMI_IRole_getExchangeReward, param2:int) : void
        {
            var _loc_3:* = int(param1.userObject);
            MsgManager.showRollTipsMsg(Language.getString(20540));
            var _loc_4:Object = {id:_loc_3, exchangeNum:param2};
            Dispatcher.dispatchEvent(new DataEvent(EventName.CollectExchangeInfoUpdate, _loc_4));
            Dispatcher.dispatchEvent(new DataEvent(EventName.CollectExchangeOutputFlyToBackPack, _loc_3));
            return;
        }// end function

    }
}
